package org.xxforest.game.core.scenes.scene2d;

import org.xxforest.game.core.XX;

public abstract class XXFloatLayer extends XXLayer {

	public XXFloatLayer(float width, float height) {
		super(width, height);
	}

	@Override
	public float getX() {
		return XX.director.getCamera().position.x + super.getX() - XX.data.getWidth() / 2;
	}

	@Override
	public float getY() {
		return XX.director.getCamera().position.y + super.getY() - XX.data.getHeight() / 2;
	}
}
